<p><%=h 'Please verify the names of your co-authors'.t %></p>

<%- form_for([@work, @chapter]) do |f| -%>
  
  <%= render :partial => 'pseuds/coauthor_form', :locals => {:creation => @chapter} %>
   
  <p><select name="chapter[author_attributes][ids][]" multiple="multiple" style="display : none;">
    <%= options_from_collection_for_select(@chapter.authors, :id, :name, @chapter.authors.collect {|pseud| pseud.id.to_i }) %>
  </select> </p>
  
  <p><%= f.hidden_field :title, :value => "#{@chapter.title}" %>
  <%= f.hidden_field :summary, :value => "#{@chapter.summary}" %>
  <%= f.hidden_field :notes, :value => "#{@chapter.notes}" %>
  <%= f.hidden_field :content, :value => "#{@chapter.content}" %></p>
  
  <p class="submit">
    <%= submit_tag 'Preview'.t, :name => 'preview_button' %>
    <%= submit_tag 'Cancel'.t, :name => 'cancel_button' %> 
  </p>


<% end %>